﻿<%@ Page Language="C#" MasterPageFile="~/Admin/DonHang/MasterPageDonHang.master" AutoEventWireup="true" CodeFile="ChiTietDonHang.aspx.cs" Inherits="Admin_ChiTietHoaDon" Title="Chi tiết đơn hàng" %>

<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
<div style="padding:12px 12px 12px 12px;">
<div>
        <div class="title">
           Chi tiết hóa đơn
        </div>                
        <div>
          <table width="100%" cellspacing="1" cellpadding="3" border="0" bgcolor="#cccccc"> 
                  <tr>
                    <td style="width:30%">Mã hóa đơn</td>
                    <td style="width:70%">
                        <asp:Literal ID="lit_MaDH" runat="server"></asp:Literal>
                    </td>
                </tr> 
                 <tr>
                    <td style="width:30%">Tên khách hàng</td>
                    <td style="width:70%">
                        <asp:Literal ID="lit_TenKH" runat="server"></asp:Literal>
                    </td>
                </tr> 
                <tr>
                    <td style="width:30%">Ngày đặt hàng</td>
                    <td style="width:70%">
                        <asp:Literal ID="lit_NgayDH" runat="server"></asp:Literal>
                    
                     </td>   
                </tr>   
                <tr>
                    <td style="width:30%">Trị giá</td>
                    <td style="width:70%">
                        <asp:Literal ID="lit_TongTien" runat="server"></asp:Literal>
                    </td>
                </tr>           
                  
                  
                   <tr>
                    <td style="width:30%">Ngày giao hàng</td>
                    <td style="width:70%">
                        <asp:Literal ID="lit_NgayGiao" runat="server"></asp:Literal>
                    </td>
                </tr>   
                
                <tr>
                    <td style="width:30%">Tình trạng giao hàng</td>
                    <td style="width:70%">
                        <asp:Literal ID="lit_TinhTrangGH" runat="server"></asp:Literal>
                    </td>
                </tr> 
                 <tr>
                    <td style="width:30%; height: 19px;">Phương thức thanh toán</td>
                    <td style="width:70%; height: 19px;">
                        <asp:Literal ID="lit_PhuongThucThanhToan" runat="server"></asp:Literal>
                    </td>
                </tr> 
                 <tr>
                    <td style="width:30%">Tình trạng thanh toán</td>
                    <td style="width:70%">
                        <asp:Literal ID="lit_TinhTrangThanhToan" runat="server"></asp:Literal>
                    </td>
                </tr> 
                 <tr>
                    <td style="width:30%">Nhân viên giao hàng</td>
                    <td style="width:70%">
                        <asp:Literal ID="lit_NhanVienGiaoHang" runat="server"></asp:Literal>
                    </td>
                </tr>         
              
            </table>
        </div>
       <div>
            <br />
            Danh sách sản phẩm đã mua 
     
          <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
            <HeaderTemplate>
                <table cellspacing="1" cellpadding="3" width="100%" bgcolor="#cccccc" border="0">
                <thead>
                    <tr class="listtableheader">
                        <th>Sản phẩm</th>
                        <th>Số lượng</th>
                        <th>Đơn giá</th>
                        <th>Tổng tiền</th>
                    </tr>
                </thead>
                <tbody>
            </HeaderTemplate>
            <ItemTemplate>
              <tr>
                <td>
                    <asp:Literal ID="lit_TenSP" runat="server"></asp:Literal></td>
                <td><%#Eval("SoLuong") %></td>
                <td>
                   <%#Eval("DonGia") %>
                </td>
                 <td>
                    <asp:Literal ID="lit_ThanhTien" runat="server"></asp:Literal></td>
                </td>
                
              </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody>
            </table>   
            </FooterTemplate>
        </asp:Repeater> 
        </div> 
 </div>
    <cc1:pagerv2_8 id="pager" runat="server"></cc1:pagerv2_8>
 </div>
</asp:Content>

